<form nz-form [formGroup]="validateForm" (ngSubmit)="_submitForm()">
    <div nz-form-item nz-row class="clearfix">
        <div nz-form-label nz-col [nzSm]="6" [nzXs]="24">
            <label for="customerAccount" nz-form-item-required>账号</label>
        </div>
        <div nz-form-control nz-col [nzSm]="14" [nzXs]="24" nzHasFeedback>
            <nz-input [nzSize]="'large'" formControlName="customerAccount" [nzId]="'customerAccount'"></nz-input>
            <div nz-form-explain *ngIf="getFormControl('customerAccount').dirty&&getFormControl('customerAccount').hasError('required')">请输入帐号！</div>
            <div nz-form-explain *ngIf="getFormControl('customerAccount').dirty&&getFormControl('customerAccount').hasError('customerAccount')">请输入正确的手机号码!</div>

        </div>
    </div>
    <div nz-form-item nz-row>
        <div nz-form-label nz-col [nzSm]="6" [nzXs]="24">
            <label for="companyName" nz-form-item-required>公司名称</label>
        </div>
        <div nz-form-control nz-col [nzSm]="14" [nzXs]="24" nzHasFeedback>
            <nz-input [nzSize]="'large'" formControlName="companyName" [nzId]="'companyName'"></nz-input>
            <div nz-form-explain *ngIf="getFormControl('companyName').dirty&&getFormControl('companyName').hasError('required')">请输入公司名称！</div>
        </div>
    </div>
    <div nz-form-item nz-row>
        <div nz-form-label nz-col [nzSm]="6" [nzXs]="24">
            <label for="customerMobile" nz-form-item-required>联系方式</label>
        </div>
        <div nz-form-control nz-col [nzSm]="14" [nzXs]="24" nzHasFeedback>
            <nz-input [nzSize]="'large'" formControlName="customerMobile" [nzId]="'customerMobile'"></nz-input>
            <div nz-form-explain *ngIf="getFormControl('customerMobile').dirty&&getFormControl('customerMobile').hasError('required')">请输入联系方式！</div>
            <div nz-form-explain *ngIf="getFormControl('customerMobile').dirty&&getFormControl('customerMobile').hasError('customerMobile')">请输入正确的手机号码!</div>
        </div>
    </div>
    <div nz-form-item nz-row>
        <div nz-form-label nz-col [nzSm]="6" [nzXs]="24">
            <label for="customerName" nz-form-item-required>
            <span>
              负责人姓名
              <nz-tooltip [nzTitle]="'必须填入真实姓名'">
                <i nz-tooltip class="anticon anticon-question-circle-o"></i>
              </nz-tooltip>
            </span>
          </label>
        </div>
        <div nz-form-control nz-col [nzSm]="14" [nzXs]="24" nzHasFeedback>
            <nz-input [nzSize]="'large'" formControlName="customerName" [nzId]="'customerName'"></nz-input>
            <div nz-form-explain *ngIf="getFormControl('customerName').dirty&&getFormControl('customerName').hasError('required')">请输入负责人姓名！</div>
        </div>
    </div>

    <div nz-form-item nz-row>
        <div nz-form-label nz-col [nzSm]="6" [nzXs]="24">
            <label for="deposit" nz-form-item-required>押金</label>
        </div>
        <div nz-form-control nz-col [nzSm]="14" [nzXs]="24" nzHasFeedback>
            <nz-input [nzSize]="'large'" formControlName="deposit" [nzId]="'deposit'"></nz-input>
            <div nz-form-explain *ngIf="getFormControl('deposit').dirty&&getFormControl('deposit').hasError('required')">请输入押金！</div>
        </div>
    </div>
    <div nz-form-item nz-row>
        <div nz-form-label nz-col [nzSm]="6" [nzXs]="24">
            <label for="signTime" nz-form-item-required>签约时间</label>
        </div>
        <div nz-form-control nz-col [nzSm]="14" [nzXs]="24">
            <div nz-row [nzGutter]="8">
                <div nz-col [nzSpan]="12">
                    <nz-datepicker formControlName="signTime" nzShowTime [nzPlaceHolder]="'选择时间'" [nzFormat]="'YYYY-MM-DD'"></nz-datepicker>
                    <!-- <nz-input [nzSize]="'large'" formControlName="signTime" [nzId]="'signTime'"></nz-input> -->
                </div>
            </div>
            <div nz-form-explain *ngIf="getFormControl('signTime').dirty&&getFormControl('signTime').hasError('required')">请输入签约时间！</div>
        </div>
    </div>
    <div nz-form-item nz-row>
        <div nz-form-label nz-col [nzSm]="6" [nzXs]="24">
            <label nz-form-item-required>合同</label>
        </div>
        <div nz-form-control nz-col [nzSm]="14" [nzXs]="24">
            <nz-upload [nzFileList]="fileList" nzAction="http://121.43.36.248:2003/image" [nzHeaders]="token" nzMultiple [nzDisabled]="ischeck" [nzLimit]="1" [nzName]="'image'" (nzChange)="handleChange($event)">
                <div nz-button class="divbtn" (click)="consl()">
                    <i class="anticon anticon-upload"></i><span>点击此处上传</span>
                </div>
            </nz-upload>
        </div>
    </div>
    <div nz-form-item nz-row>
        <div nz-form-label nz-col [nzSm]="6" [nzXs]="24">
            <label for="salesman" nz-form-item-required>业务员</label>
        </div>
        <div nz-form-control nz-col [nzSm]="14" [nzXs]="24" nzHasFeedback>
            <nz-input [nzSize]="'large'" formControlName="salesman" [nzId]="'salesman'"></nz-input>
            <div nz-form-explain *ngIf="getFormControl('salesman').dirty&&getFormControl('salesman').hasError('required')">请输入业务员！</div>
        </div>
    </div>
    <div nz-form-item nz-row>
        <div nz-form-label nz-col [nzSm]="6" [nzXs]="24">
            <label for="password" nz-form-item-required>客户密码</label>
        </div>
        <div nz-form-control nz-col [nzSm]="14" [nzXs]="24" nzHasFeedback>
            <input type="password" name="password" style="width:0;height:0;float:left;visibility:hidden">
            <nz-input [nzSize]="'large'" formControlName="password" [nzType]="'password'" [nzId]="'password'"></nz-input>
            <div nz-form-explain *ngIf="getFormControl('password').dirty&&getFormControl('password').hasError('required')">请输入客户密码！</div>
        </div>
    </div>
    <div nz-form-item nz-row style="margin-bottom:8px;">
        <div nz-form-control nz-col [nzSpan]="14" [nzOffset]="6">
            <button nz-button [nzSize]="'large'" [nzType]="'primary'">提交</button>
        </div>
    </div>

</form>